From: Florian Müllner Date: Mon, 19 Aug 2019 19:12:21 +0000 (+0200) Subject: calendar: Use template strings over concatenation X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~811^2^2~116 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=7db5f8b28ee1e226d60ec8dcdc621a26b8cfcf76;p=gnome-shell.git calendar: Use template strings over concatenation https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/710 --- diff --git a/js/ui/calendar.js b/js/ui/calendar.js index 4de3965ac..1f9802f4b 100644 --- a/js/ui/calendar.js +++ b/js/ui/calendar.js @@ -688,15 +688,15 @@ var EventMessage = class EventMessage extends MessageList.Message { let rtl = Clutter.get_default_text_direction() == Clutter.TextDirection.RTL; if (this._event.date < periodBegin && !this._event.allDay) { if (rtl) - title = title + ELLIPSIS_CHAR; + title = `${title}${ELLIPSIS_CHAR}`; else - title = ELLIPSIS_CHAR + title; + title = `${ELLIPSIS_CHAR}${title}`; } if (this._event.end > periodEnd && !this._event.allDay) { if (rtl) - title = ELLIPSIS_CHAR + title; + title = `${ELLIPSIS_CHAR}${title}`; else - title = title + ELLIPSIS_CHAR; + title = `${title}${ELLIPSIS_CHAR}`; } return title; }